package ua.com.globallogic.javatraining.iryna_chorna.univercity.helpers;

import java.util.GregorianCalendar;

import ua.com.globallogic.javatraining.iryna_chorna.univercity.people.Name;
import ua.com.globallogic.javatraining.iryna_chorna.univercity.people.Student;
import ua.com.globallogic.javatraining.iryna_chorna.univercity.people.Teacher;
import ua.com.globallogic.javatraining.iryna_chorna.univercity.people.Teacher.AcademicDegree;
import ua.com.globallogic.javatraining.iryna_chorna.univercity.structure.Auditorium;
import ua.com.globallogic.javatraining.iryna_chorna.univercity.structure.Course;

/**
 * Entry point for launching university model activities
 */
public class UniversityRunner {
	public static void main(String[] args) {
		Student newStudent = new Student(new Name("Iryna",  "Chorna")); 
		Course rocketScince = new Course ("Basics of rocket scince"); 
		newStudent.enrollForCourse(rocketScince);
		newStudent.attendLecture(rocketScince);
		Teacher teacher = new Teacher(new Name("Lorens", "Jameson"), AcademicDegree.PROFESSOR);
		teacher.addCourse(rocketScince);
		teacher.attendLecture(rocketScince);
		Auditorium auditorium = new Auditorium(100);
		auditorium.book(new GregorianCalendar(2014, 4, 7), 3);
		auditorium.isBooked(new GregorianCalendar(2014, 4, 7), 3);
		auditorium.free(new GregorianCalendar(2014, 4, 7), 3);
		auditorium.book(new GregorianCalendar(2014, 4, 7), 3);
	}

}
